<?php

return [
    'default' => 'mysql',
    'connections' => [
        'mysql' => [
            // 数据库类型
            'type' => 'mysql',
            'hostname' => env('DB_HOST', 'localhost'),
            'hostport' => env('DB_PORT', 3306),
            'database' => env('DB_DATABASE', 'test'),
            'username' => env('DB_USERNAME', 'root'),
            'password' => env('DB_PASSWORD', 'root'),
            'charset' => env('DB_CHARSET', 'utf8mb4'),
            'prefix' => env('DB_PREFIX', ''),
            // 数据库连接参数
            'params' => [
                // 连接超时3秒
                \PDO::ATTR_TIMEOUT => 3,
            ],
            // 断线重连
            'break_reconnect' => true,
            // 自定义分页类
            'bootstrap' => ''
        ],
    ],
];
